Skip to main content

PutObjectACL

Description

PutObjectACL interface is used to modify the access rights of Object.

Request Method

POST

Request Path

/apsara/route/OneRouter/PutObjectACL

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
x-oss-object-aclBODYstringYesprivateSpecify the access permission when OSS creates an object. Legal value: private: only authorized users can access the target file. public-read: all users can read the target file, and only authorized users can modify the target file. public-read-write: all users can read and write the target file. default: the ACL of the file is the same as Bucket.
regionIdBODYstringYesNo sample value for this parameter.region id
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}